package gqz.testdemo.BtBleDemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import gqz.testdemo.R;

/**
 * Created by Administrator on 2018/9/18.
 */

public class GuideActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guide);
    }

    public void onclick(View v) {
        switch (v.getId()) {
            case R.id.guide_btn_client:
                startActivity(new Intent(GuideActivity.this, BleClientDemo.class));
                finish();
                break;
            case R.id.guide_btn_server:
                startActivity(new Intent(GuideActivity.this, BleServerDemo.class));
                finish();
                break;
            case R.id.guide_btn_btclient:
                startActivity(new Intent(GuideActivity.this, BTClient.class));
                finish();
                break;
            case R.id.guide_btn_btserver:
                startActivity(new Intent(GuideActivity.this, BTServer.class));
                finish();
                break;
        }
    }
}
